{% extends "qualApp/base.html" %}
{% load url from future %}

{% block title %}Sing In{% endblock %}
{% block header %}Member Sign In{% endblock %}
{% block navigation %}{% endblock %}

{% block content %}

{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}

<form method="post" action="{% url 'django.contrib.auth.views.login' %}">
{% csrf_token %}
<table>
<tr>
    <td>{{ form.username.label_tag }}</td>
    <td>{{ form.username }}</td>
</tr>
<tr>
    <td>{{ form.password.label_tag }}</td>
    <td>{{ form.password }}</td>
</tr>
</table>

<input type="submit" value="login" />
{% if request.method == 'GET' %}
<input type="hidden" name="continue" value="{{ continue }}" />
{% else %}
<input type="hidden" name="continue" value="{{ continue }}" />
{% endif %}
</form>
<p><a href="/qualApp/accounts/create/">Create a new account</a></p>

{% endblock %}
